home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
maximus
/
stbar20.zip
/
STTOG.MEX
< prev
next >
Wrap
Text File
|
1996-04-12
|
1KB
|
49 lines
////////////////////////////////////////////////////////////////////////////
//
// STTOG V2.00 - StarBar key toggler. (!)1996 Larry Monte/StarLab Systems
//
// MEX: Copyright 1990, 1995 by Lanius Corporation. All rights reserved.
//
//
#define INCL_starbar
#include <max.mh>
#include <max_menu.mh>
#include <language.mh>
// Change the following KEY define to the access key Desired.
#define KEY "O"
struct _usr: u;
int: keyfind, stlen;
void main()
{
init_lang_starbar();
print(AVATAR_CLS, str_sttog_header);
print(str_sttog_note);
u.xkeys := usr.xkeys;
stlen := strlen(u.xkeys);
keyfind := strfind(u.xkeys, KEY);
if (keyfind > 0)
{
u.xkeys := (substr(u.xkeys, 1, keyfind-1))+
(substr(u.xkeys, keyfind+1,stlen));
print(str_sttog_stat_start, str_sttog_enable, str_sttog_stat_end);
menu_cmd(MNU_PRESS_ENTER,"");
}
else
{
u.xkeys := u.xkeys + KEY;
print(str_sttog_stat_start, str_sttog_disable, str_sttog_stat_end);
menu_cmd(MNU_PRESS_ENTER,"");
}
usr.xkeys := u.xkeys;
}